package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

public interface EmployeeService {

    //根据用户名查询登录用户数据
    R<Employee> login(Employee employee);

    //添加员工信息
    void insert(Employee employee);

    //员工列表分页
    Page<Employee> findBypage(Integer page,Integer pageSize, String name);

    //修改员工信息
    void update(Employee employee);

    R<Employee> findById(Long id);
}
